package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by Miracle yaochengwei on 2020/8/29 19:51
 * 容错，调用这个方法
 */
@Component
public class VodFileDegradeFeignClient implements VodClient{
    //出错之后会执行
    @Override
    public R removeAlyVideo(String id) {
        return R.error().message("视频删除出错了");
    }

    @Override
    public R deleteBatch(List<String> videoIdList) {
        return R.error().message("视频多个删除出错了");
    }
}
